<?php

namespace System\Controllers;

class Index extends \System\Core\Controller
{

    public function __construct()
    {
        parent::__construct();

        $this->curuser->loginOrRedirect();
    }
    
    public function indexAction()
    {  
        $this->view->render('index');
    }

    public function logoutAction()
    {
        $this->curuser->logOut();
        $this->fc->siteRedirect('login');
    }
}

?>
